<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Database Slices</title>
    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
    <link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
    <link rel="up" href="upgrade_62_toc.html" title="Chapter 9.  Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2" />
    <link rel="prev" href="upgrade_62_toc.html" title="Chapter 9.  Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2" />
    <link rel="next" href="renaming_blobs_external.html" title="Renaming the BLOB file feature to External Files" />
  </head>
  <body>
    <div xmlns="" class="navheader">
      <div class="libver">
        <p>Library Version 12.1.6.2</p>
      </div>
      <table width="100%" summary="Navigation header">
        <tr>
          <th colspan="3" align="center">Database Slices</th>
        </tr>
        <tr>
          <td width="20%" align="left"><a accesskey="p" href="upgrade_62_toc.html">Prev</a> </td>
          <th width="60%" align="center">Chapter 9.  Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2 </th>
          <td width="20%" align="right"> <a accesskey="n" href="renaming_blobs_external.html">Next</a></td>
        </tr>
      </table>
      <hr />
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both"><a id="upgrade_slices"></a>Database Slices</h2>
          </div>
        </div>
      </div>
      <div class="toc">
        <dl>
          <dt>
            <span class="sect2">
              <a href="upgrade_slices.html#idm140188017655648">New Functions</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="upgrade_slices.html#idm140188017598896">New Error</a>
            </span>
          </dt>
          <dt>
            <span class="sect2">
              <a href="upgrade_slices.html#idm140188017603536">New Parameter Values</a>
            </span>
          </dt>
        </dl>
      </div>
      <p>
            Berkeley DB supports a new SMP-optimized data model that is
            especially valuable for highly multithreaded applications.
            A sliced Berkeley DB instance contains a collection of related
            Berkeley DB environments known as slices, each containing a
            disjoint subset of records. Transactional consistency is
            maintained within an individual slice but not across multiple
            slices.
        </p>
      <p>
            Database slices are enabled with a configuration option
            when building Berkeley DB and a simple addition to the
            DB_CONFIG file. Database slices are supported on UNIX/POSIX
            platforms.
        </p>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017655648"></a>New Functions</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_slice_count.html" class="olink">DB_ENV-&gt;get_slice_count()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/envget_slices.html" class="olink">DB_ENV-&gt;get_slices()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbset_slice_callback.html" class="olink">DB-&gt;set_slice_callback()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbget_slices.html" class="olink">DB-&gt;get_slices()</a>
              </code>
            </li>
            <li>
              <code class="literal">
                <a href="../api_reference/C/dbslice_lookup.html" class="olink">DB-&gt;slice_lookup()</a>
              </code>
            </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017598896"></a>New Error</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li>
              <code class="literal">DB_SLICE_CORRUPT</code>
            </li>
          </ul>
        </div>
      </div>
      <div class="sect2" lang="en" xml:lang="en">
        <div class="titlepage">
          <div>
            <div>
              <h3 class="title"><a id="idm140188017603536"></a>New Parameter Values</h3>
            </div>
          </div>
        </div>
        <div class="itemizedlist">
          <ul type="disc">
            <li><code class="literal">DB_SLICED</code> — A new 
                    <code class="literal">flags</code>
                    parameter value for the <a href="../api_reference/C/dbopen.html" class="olink">DB-&gt;open()</a> method to indicate
                    that the database is sliced.
                </li>
            <li><code class="literal">DB_VERB_SLICED</code> — A new 
                    <code class="literal">which</code>
                    parameter value for the <a href="../api_reference/C/envset_verbose.html" class="olink">DB_ENV-&gt;set_verbose()</a> method to
                    request verbose output for database slices.
                </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="navfooter">
      <hr />
      <table width="100%" summary="Navigation footer">
        <tr>
          <td width="40%" align="left"><a accesskey="p" href="upgrade_62_toc.html">Prev</a> </td>
          <td width="20%" align="center">
            <a accesskey="u" href="upgrade_62_toc.html">Up</a>
          </td>
          <td width="40%" align="right"> <a accesskey="n" href="renaming_blobs_external.html">Next</a></td>
        </tr>
        <tr>
          <td width="40%" align="left" valign="top">Chapter 9.  Upgrading Berkeley DB 12.1.6.1 applications to Berkeley DB 12.1.6.2  </td>
          <td width="20%" align="center">
            <a accesskey="h" href="index.html">Home</a>
          </td>
          <td width="40%" align="right" valign="top"> Renaming the BLOB file feature to External Files</td>
        </tr>
      </table>
    </div>
  </body>
</html>
